<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:sec="http://www.springframework.org/security/facelets/tags">
      
      <ui:composition>
      	<h:form>
	      	<table id="menu-bar" cellpadding="0" cellspacing="1">
				<tbody>
					<sec:ifAnyGranted roles="ADMIN">
				    	<tr>
				        	<td class="column-menu-title">
				        		<h:outputText value="#{msg['manager.menu.left.title.cadastros']}" />
				          	</td>
				        </tr>
				        <tr>
				          	<td class="column-menu-value">			          				          		
				          		- <h:commandLink action="/faces/manager/xhtml/cliente/list.xhtml" value="#{msg['manager.menu.left.admin.cliente']}"/><br/>
								- <h:commandLink action="/faces/manager/xhtml/anuncio/list.xhtml" actionListener="#{anuncioController.loadModels}" value="#{msg['manager.menu.left.admin.anuncio']}" /><br/>						
				          	</td>
				        </tr>
			        </sec:ifAnyGranted>
			        <sec:ifAnyGranted roles="IMOBILIARIA,CORRETOR">
			        	<tr>
				        	<td class="column-menu-title">
				        		<h:outputText value="#{msg['manager.menu.left.title.cadastros']}" />
				          	</td>
				        </tr>
				        <tr>
				          	<td class="column-menu-value">			          				          						          		
								- <h:commandLink action="/faces/manager/xhtml/anuncio/list.xhtml" actionListener="#{anuncioController.loadModels}" value="#{msg['manager.menu.left.admin.imovel.title']}" /><br/>						
				          	</td>
				        </tr>
			        </sec:ifAnyGranted>			        
			        <sec:ifAnyGranted roles="ADMIN,CLIENTE,IMOBILIARIA,CORRETOR">
				        <tr>
				          	<td class="column-menu-title">
				          		<h:outputText value="#{msg['manager.menu.left.title.controle']}" />
				          	</td>
				        </tr>
				        <tr>
				          	<td class="column-menu-value">
				          		- <h:commandLink action="/faces/manager/xhtml/auditoria/list.xhtml" actionListener="#{auditoriaController.loadModels}" value="#{msg['manager.menu.left.controle.auditoria']}" /><br/>
				          	</td>
				        </tr>
			        </sec:ifAnyGranted>			        
			        <tr>
			          	<td class="column-menu-title">
			          		<h:outputText value="#{msg['manager.menu.left.title.administracao']}" />
			          	</td>
			        </tr>
			        <tr>
			          	<td class="column-menu-value">
			          		<sec:ifAnyGranted roles="ADMIN">
			          			- <h:commandLink action="/faces/manager/xhtml/ramo/list.xhtml" value="#{msg['manager.menu.left.admin.ramo']}" /><br/>
								- <h:commandLink action="/faces/manager/xhtml/servico/list.xhtml" value="#{msg['manager.menu.left.admin.servico']}" /><br/>
								- <h:commandLink action="/faces/manager/xhtml/usuario/list.xhtml" value="#{msg['manager.menu.left.admin.usuario']}" /><br/>
			          		</sec:ifAnyGranted>
			          		<sec:ifAnyGranted roles="CLIENTE,IMOBILIARIA,CORRETOR">
			          			- <h:commandLink action="/faces/manager/xhtml/mensagem/list.xhtml" value="#{msg['manager.menu.left.admin.mensagem']}" /><br/>
			          		</sec:ifAnyGranted>
			          		<sec:ifAnyGranted roles="ADMIN,CLIENTE,IMOBILIARIA,CORRETOR">
			          			- <h:commandLink value="#{msg['manager.menu.left.admin.logout']}" action="#{usuarioController.logout}" /><br/>
			          		</sec:ifAnyGranted>			          									
			          	</td>
			        </tr>			        
			    </tbody>
			</table>
		</h:form>      	
      </ui:composition>	

</html>